package org.kotboot.kit;

import org.joda.time.DateTime;

import java.util.UUID;

/**
 * jisong.sun 2017/9/18 16:15
 */
public class RandomKit {

    public static String generateTradeNumber(){
        String pre = "TD";
        String time = DateTime.now().toString("yyyyMMddHHMMss");
        int code = UUID.randomUUID().toString().hashCode();
        return pre + time + code;
    }
}
